﻿@using PortalWeb.Web.Areas.Admin.Models
@model PortalWeb.Web.Areas.Admin.Models.LoginViewModel
@{
    ViewBag.Title = "登录";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayoutBase.cshtml";
}

<div class="row-fluid">
    <div class="dialog">
        <div class="block">
            <p class="block-heading">登录</p>
            <div class="block-body">
                @using (Html.BeginForm("Login", "Account", new {ReturnUrl = ViewBag.ReturnUrl}, FormMethod.Post, new {@class = "form-signin", role = "form"}))
                {
                    @Html.AntiForgeryToken()


                    @Html.LabelFor(m => m.Email)
                    @Html.TextBoxFor(m => m.Email, new {@class = "form-control"})
                    @Html.LabelFor(m => m.Password)
                    @Html.PasswordFor(m => m.Password, new {@class = "form-control"})
                    <button class="btn btn-primary pull-right" type="submit">
                        登录
                    </button>
                    <label class="remember-me">
                        @Html.CheckBoxFor(m => m.RememberMe)
                        @Html.LabelFor(m => m.RememberMe)
                    </label>
                    <div class="clearfix">
                        @Html.ValidationMessageFor(m => m.Email, "", new {@class = "text-danger"})
                        @Html.ValidationMessageFor(m => m.Password, "", new {@class = "text-danger"})
                        @Html.ValidationSummary(true, "", new {@class = "text-danger"})
                    </div>
                }
            </div>
        </div>
        <p>@Html.ActionLink("忘了你的密码?", "ForgotPassword")
            @Html.ActionLink("注册", "Register")</p>
        <section id="socialLoginForm">
            @Html.Partial("_ExternalLoginsListPartial", new {Action = "ExternalLogin", ReturnUrl = ViewBag.ReturnUrl})
        </section>
        admin@admin.com
        Password@123
    </div>

</div>


@section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    }
